package com.roshan.web.security.util;

import java.text.SimpleDateFormat;
import java.util.Date;

@SuppressWarnings("nls")
public class DateUtils {

    public static final String DATE_FORMAT = "MM/dd/yyyy";

    public static final String DATE_TIME_FORMAT = "MM-dd-yyyy HH:mm:ss";

    public static String getDateToString(Date date) {
        SimpleDateFormat SimpleDateFormat = new SimpleDateFormat(DATE_FORMAT);
        return SimpleDateFormat.format(date);
    }

    public static String getFormatedDateTime(Date date) {
        SimpleDateFormat dateFormat = new SimpleDateFormat(DATE_TIME_FORMAT);
        return dateFormat.format(date);
    }

}
